<div class="form-container">
<div class="validation-errors" id="validationErrors" style="display:none;"></div>
<div class="walk-register-buttons" style="float: right;">
	<a href="<?php echo( base_url() ); ?>cmb/member_reports/gen_reports/<?php echo( $urlKey ); ?>/"><img src="<?php echo( base_url() ); ?>assets/images/buttons/reports1.gif" border="0" /></a>
	<a href="<?php echo( base_url() ); ?>cmb/member_registration/register_members/<?php echo( $urlKey ); ?>/"><img src="<?php echo( base_url() ); ?>assets/images/buttons/register_members1.gif" border="0" /></a>
	<a href="<?php echo( base_url() ); ?>cmb/member_registration/admin_edit_members/<?php echo( $urlKey ); ?>/"><img src="<?php echo( base_url() ); ?>assets/images/buttons/edit_member_account1.gif" border="0" /></a>
	<a href="<?php echo( base_url() ); ?>cmb/member_registration/administration/<?php echo( $urlKey ); ?>/"><img src="<?php echo( base_url() ); ?>assets/images/buttons/administration.gif" border="0" /></a>
<!--	<a href="<?php echo( base_url() ); ?>cmb/member_registration/release_check/<?php echo( $urlKey ); ?>/"><img src="<?php echo( base_url() ); ?>assets/images/buttons/relchecks1.gif" border="0" /></a> -->
	<a href="<?php echo( base_url() ); ?>cmb/member_registration/register_existing_member/<?php echo( $urlKey ); ?>/"><img src="<?php echo( base_url() ); ?>assets/images/buttons/member_register1.gif" border="0" /></a>
	<a href="<?php echo( base_url() ); ?>cmb/member_registration/edit_account/<?php echo( $urlKey ); ?>/"><img src="<?php echo( base_url() ); ?>assets/images/buttons/edit_account1.gif" border="0" /></a>
	<a href="<?php echo( base_url() ); ?>cmb/member/homepage_logout/"><img src="<?php echo( base_url() ); ?>assets/images/buttons/logout1.gif" border="0" /></a>
</div>
<?php
	Includes::IncludeFile( Includes::$FORM );
	Includes::IncludeFile( Includes::$SPACER );
		
	Spacer::Render(0, 60);
	echo('<font color = "blue">'.$loggedinname.' is currently logged in</font>');
	Spacer::Render(0, 10);
	echo('<b>Primary Member Info</b>');
	echo('<hr />');	
	Form::OpenFormItem('Primary Member User Name:', 260);
		echo( form_label($cwr_registrant_home_value->getUserName(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItem('Primary Member Password:', 260);
		echo( form_label($this->encrypt->decode($cwr_registrant_home_value->getPassword()), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItem('Primary Member Security Question:', 260);
		echo( form_label($cwr_registrant_home_value->getSecretQuestion(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItem('Primary Member Security Answer:', 260);
		echo( form_label($cwr_registrant_home_value->getSecretPhrase(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('Primary Member Name:', 260);
		echo( form_label($cwr_registrant_home_value->getFirstName() . ' ' . $cwr_registrant_home_value->getLastName(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('Primary Member Gender:', 260);
		echo( form_label($cwr_registrant_home_value->getGender(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('Primary Member Email:', 260);
		echo( form_label($cwr_registrant_home_value->getEmail1(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('Primary Member Home Phone:', 260);
		echo( form_label($cwr_registrant_home_value->getPhone1(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('Primary Member Mobile Phone:', 260);
		echo( form_label($cwr_registrant_home_value->getPhone2(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItem('Primary Member Company Name:', 260);
		echo( form_label($cwr_registrant_home_value->getOrgName(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('Primary Member Volunteer Interests:', 260);
		echo( form_label($cwr_registrant_home_value->getVolInt(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Spacer::Render(0, 15);
			
	if($cwr_registrant_home_value->getSpouseFirstName() != "")
	{
		echo('<b>Spouse Member Info</b>');
		echo('<hr />');
		Form::OpenFormItemSummary('Spouse Member Name:', 260);
			echo( form_label($cwr_registrant_home_value->getSpouseFirstName() . ' ' . $cwr_registrant_home_value->getSpouseLastName(), 'seva', 'style="width: 20px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItemSummary('Spouse Member Gender:', 260);
			echo( form_label($cwr_registrant_home_value->getSpouseGender(), 'seva', 'style="width: 20px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItemSummary('Spouse Member Email:', 260);
			echo( form_label($cwr_registrant_home_value->getSpouseEmail1(), 'seva', 'style="width: 20px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItemSummary('Spouse Member Home Phone:', 260);
			echo( form_label($cwr_registrant_home_value->getSpousePhone1(), 'seva', 'style="width: 20px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItemSummary('Spouse Member Mobile Phone:', 260);
			echo( form_label($cwr_registrant_home_value->getSpousePhone2(), 'seva', 'style="width: 20px;" ') );
		Form::CloseFormItem();
		Form::OpenFormItemSummary('Spouse Member Volunteer Interests:', 260);
			echo( form_label($cwr_registrant_home_value->getSpouseVolInt(), 'seva', 'style="width: 20px;" ') );
		Form::CloseFormItem();
	}	
	Spacer::Render(0, 15);
	
	echo('<b>Household Info</b>');
	echo('<hr />');
	Form::OpenFormItemSummary('Home Address1:', 260);
		echo( form_label($cwr_registrant_home_value->getAddress1(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('Home Address2:', 260);
		echo( form_label($cwr_registrant_home_value->getAddress2(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('City:', 260);
		echo( form_label($cwr_registrant_home_value->getCity(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('State:', 260);
		echo( form_label($cwr_registrant_home_value->getState(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('Postal Code:', 260);
		echo( form_label($cwr_registrant_home_value->getZip(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Spacer::Render(0, 10);
	Form::OpenFormItemSummary('CMB Center:', 260);
		echo( form_label($cwr_registrant_home_value->getCMBCenter(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('CMB Membership Type:', 260);
		echo( form_label($cwr_registrant_home_value->getMemberType(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('Preferred Satsang Session:', 260);
		echo( form_label($cwr_registrant_home_value->getSession(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Spacer::Render(0, 15);

	$numChildren = count($cwr_registrant_home_value->getChildInfo());

	if($numChildren > 0)
	{
		$numEnabledChildren = 0;
		$childInfoArray = $cwr_registrant_home_value->getChildInfo();
		for( $i = 0; $i < $numChildren; $i++ )
		{
			$childInfoRes = $childInfoArray[$i];
			if ($childInfoRes[7] == "1")
				$numEnabledChildren ++;
		}

		if ($numEnabledChildren > 0)
		{
			Spacer::Render(0, 15);
	
			echo('<b>Children Balavihar Info</b>');
			echo('<hr />');
		
			for( $i = 0; $i < $numChildren; $i++ )
			{
				$childInfoRes = $childInfoArray[$i];
				if ($childInfoRes[7] == "1")
				{
					Form::OpenFormItemSummary('Child ' . ($i+1) . ' Name:', 260);
						echo( form_label($childInfoRes[0] . ' ' . $childInfoRes[1], 'seva', 'style="width: 20px;" ') );
					Form::CloseFormItem();
					Form::OpenFormItemSummary('Child ' . ($i+1) . ' Gender:', 260);
						echo( form_label($childInfoRes[2], 'seva', 'style="width: 20px;" ') );
					Form::CloseFormItem();
					Form::OpenFormItemSummary('Child ' . ($i+1) . ' Email:', 260);
						echo( form_label($childInfoRes[3], 'seva', 'style="width: 20px;" ') );
					Form::CloseFormItem();
					Form::OpenFormItemSummary('Child ' . ($i+1) . ' DOB:', 260);
						echo( form_label(substr($childInfoRes[4],0,10), 'seva', 'style="width: 20px;" ') );
					Form::CloseFormItem();
					Form::OpenFormItemSummary('Child ' . ($i+1) . ' Grade:', 260);
						echo( form_label($childInfoRes[5], 'seva', 'style="width: 20px;" ') );
					Form::CloseFormItem();
				}
			
				Spacer::Render(0, 10);
			} //for( $i = 0; $i < $numChildren; $i++ )
		} //if ($numEnabledChildren > 0)
	} //if($numChildren > 0)

	if($numChildren > 0)
	{
		$numEnabledChildren = 0;
		$childLangArray = $cwr_registrant_home_value->getChildLang();
		for( $i = 0; $i < $numChildren; $i++ )
		{
			$childInfoRes = $childInfoArray[$i];
			if (($childLangArray[$i] != "None") and ((int)$childInfoRes[8] == $curyear))
				$numEnabledChildren ++;
		}

		if ($numEnabledChildren > 0)
		{
			Spacer::Render(0, 15);
	
			echo('<b>Children Language Info</b>');
			echo('<hr />');
		
			$childLangLevelArray = $cwr_registrant_home_value->getChildLangLevel();
			for( $i = 0; $i < $numChildren; $i++ )
			{
				$childInfoRes = $childInfoArray[$i];
				if (($childLangArray[$i] != "None") and ((int)$childInfoRes[8] == $curyear))
				{
					Form::OpenFormItemSummary('Child ' . ($i+1) . ' Name:', 260);
						echo( form_label($childInfoRes[0] . ' ' . $childInfoRes[1], 'seva', 'style="width: 20px;" ') );
					Form::CloseFormItem();
					Form::OpenFormItemSummary('Child ' . ($i+1) . ' Language:', 260);
						echo( form_label($childLangArray[$i], 'seva', 'style="width: 20px;" ') );
					Form::CloseFormItem();
					Form::OpenFormItemSummary('Child ' . ($i+1) . ' Language Level:', 260);
						echo( form_label($childLangLevelArray[$i], 'seva', 'style="width: 20px;" ') );
					Form::CloseFormItem();				
				}			
				Spacer::Render(0, 10);
			} //for( $i = 0; $i < $numChildren; $i++ )
		}
	} //if($numChildren > 0)
/*
	Spacer::Render(0, 25);
	echo('<b>Admin Member Info</b>');
	echo('<hr />');
	
	Form::OpenFormItem('Primary Member User Name:', 260);
		echo( form_label($cwr_registrant_home_value->getUserName(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItem('Primary Member Password:', 260);
		echo( form_label($this->encrypt->decode($cwr_registrant_home_value->getPassword()), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('Primary Member Name:', 260);
		echo( form_label($cwr_registrant_home_value->getFirstName() . ' ' . $cwr_registrant_home_value->getLastName(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
	Form::OpenFormItemSummary('Primary Member Email:', 260);
		echo( form_label($cwr_registrant_home_value->getEmail1(), 'seva', 'style="width: 20px;" ') );
	Form::CloseFormItem();
*/
?>
